{% extends "base_weblog" %}

{% block title %}Blog | {{ object.titre|escape }}{% endblock %}

{% block content %}

<h1>{{ object.titre }}</h1>
{{ object.corps }}
<p class="date small">Posté par <strong>{{ object.auteur }}</strong> le {{ object.date_pub|date:"j F Y" }}</p>

{% load comments %}
{% get_free_comment_list for blog.entrees object.id as comment_list %}

<div id="content-secondary">
<h2 id="comments">Commentaires</h2>

{% for comment in comment_list %}
<div class="comment" id="c{{ comment.id }}">
	<h3>{{ comment.person_name }} <span class="small quiet">{{ comment.submit_date|date:"j F Y" }} à {{ comment.submit_date|date:"P" }}</span></h3>
    {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }}
</div>
{% endfor %}

<h2>Poster un commentaire</h2>

{% free_comment_form for blog.entrees object.id %}
</div>
{% endblock %}
